Case 01: Aircraft Battle

Purpose


  • Create a game of aircraft battle via the Retro.

Materials Required


../_images/retro-case-01-01.png

Program


  • Create a spirite project, set move it with buttons and set it stay in screen with “on” and start screen with clouds.

../_images/retro-case-03-01.png

  • Set life to 3 in the on start block. Choose on game update every seconds block and set it as 1 sec, set the projectile catapult from side VX 0 VY 50. Set change life by -1 while crashing the enemy and destroy it.

../_images/retro-case-03-02.png

  • While pressing button A, launch the projectiles from the spirite, set the speed from X as 0 and Y as -70. Set the effect of the projectiles in fire, when that projectile crashes onto the enemies, both of them are destroyed and the score plus 1.

../_images/retro-case-03-03.png

Program


Downloading Program

After programming, connect the computer with the Retro via the USB cable.

  • ../_images/retro-case-01-10.png

  • Choose hardware “F4”.

    ../_images/retro-case-01-11.png

  • Click the reset button on the Retro and go to the downloading page.

    ../_images/retro-case-01-13.png

  • Match the devices and get connected with “Arcade (app)”.

    ../_images/retro-case-01-12.png

  • Click downloading to compile the program into the Retro.

    ../_images/retro-case-01-14.png

Conclusion


  • Control the movement of the spirite in the screen, set the life in 3. When it crashes onto the enemy, the life score decreases 1, the game is over when the score is 0; press button A to launch the projectiles, the score adds 1 each time when the enemy gets hit.